package com.hafiery.sdk.bluetooth.transport.adapter;


import com.hafiery.sdk.bluetooth.util.LogUtil;

/**
 * @author peng.wang
 */
public class Int8Adapter implements DataAdapter<Integer> {
    @Override
    public Integer parse(byte[] value) {
        if (value.length != 1) {
//            throw new RuntimeException("value length=" + value.length);
            return 0;
        }
        return value[0] & 0x000000ff;
    }
}
